<?php
if($_POST['sex']>= 18){
    $string = '成年';
}else{
    $string = "未成年";
}
$date = [
    'status' => 404,
    'message' => '你的号没了',
    'date' => [
        'sex' => $string
    ]
];
header("Content-Type: application/json");
echo json_encode($date);
